package project.vip.services;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import project.order.Order;
import project.vip.po.Ad;
import project.vip.po.Vip;
import kernel.web.Page;

public interface AdminVipService {
	/**
	 * 根据phone查找VIP
	 * @param phone
	 * @return
	 */
	public List<Vip> getVipList(String phone);
    /**
     * 发送邀请列表
     * @param pageNo
     * @param pageSize
     * @param name
     * @param phone
     * @param createTime_begin
     * @param createTime_end
     * @param toOpenId
     * @return
     */
    public Page getSendInvList(int pageNo, int pageSize, String name, String phone, Date createTime_begin,
            Date createTime_end,String toOpenId,String fromOpenId);

    /**
     * 订单明细
     * @param id
     * @return
     */
    public Order findOrder(Serializable id);

    /**
     * 我的订单
     * @param pageNo
     * @param pageSize
     * @param name
     * @param phone
     * @param createTime_begin
     * @param createTime_end
     * @param openId
     * @return
     */
    public Page myOrder(int pageNo, int pageSize, String name, String phone, Date createTime_begin,
            Date createTime_end,String openId);
    public Vip find(String openid);
    public Page pagedQuery(int pageNo, int pageSize,String phone);


    public Vip getById(Serializable id);
    
    public void save(Vip entity);
    
    public void delete(Serializable id);

    public void update(Vip entity);
}
